import axios from 'axios'
const $axios = axios.create({
  baseURL: 'https://www.tinyxu.fun/v1',
  timeout: 2000,
})
$axios.interceptors.response.use(
  function (response) {
    return response.data
  },
  function (error) {
    return Promise.reject(error)
  }
)
export default $axios
